//	@file Version: 1.0
//	@file Name: serverVars.sqf
//	@file Author: [404] Deadbeat, [404] Costlyy, [404] Pulse
//	@file Created: 20/11/2012 05:19
//	@file Args:
// --------------------------------------------------------------------------------------------------- \\
// ----------  !DO NOT CHANGE ANYTHING BELOW THIS POINT UNLESS YOU KNOW WHAT YOU ARE DOING!	---------- \\
// ----------																				---------- \\
// ----------			404Games are not responsible for anything that may happen 			---------- \\
// ----------			 as a result of unauthorised modifications to this file.			---------- \\
// --------------------------------------------------------------------------------------------------- \\
#include "setup.sqf"
if(!X_Server) exitWith {};

diag_log format["WASTELAND SERVER - Initilizing Server Vars"];

CVG_weapons = [];
CVG_weapons = CVG_rifles;
CVG_weapons = CVG_weapons + CVG_Scoped;
CVG_weapons = CVG_weapons + CVG_Heavy;
CVG_weapons = CVG_weapons + CVG_pistols;
CVG_weapons = CVG_weapons + CVG_Launchers;

#ifdef __A2NET__
missionStartTime = 0;
netTime = 0;
#endif

sideMissionPos = "";
mainMissionPos = "";

currentVehicles = [];
publicVariable "currentVehicles";
pvar_teamSwitchList = [];
publicVariable "pvar_teamSwitchList";
pvar_teamKillList = [];
publicVariable "pvar_teamKillList";
pvar_beaconListBlu = []; 
publicVariable "pvar_beaconListBlu";
pvar_beaconListRed = []; 
publicVariable "pvar_beaconListRed";
clientMissionMarkers = [];
publicVariable "clientMissionMarkers";
clientRadarMarkers = [];
publicVariable "clientRadarMarkers";
currentDate = [];
publicVariable "currentDate";
currentInvites = [];
publicVariable "currentInvites";
                  
"PlayerCDeath" addPublicVariableEventHandler {_id = (_this select 1) spawn server_playerDied};

currentStaticHelis = []; // Storage for the heli marker numbers so that we don't spawn wrecks on top of live helis

//Civilian Vehicle List - Random Spawns
civilianVehicles = ["I44_Car_B_WillysAB_Army",
					"I44_Car_G_Kfz1_CamoOpen_WH",
					"I44_HT_G_SdKfz2_Camo_WH",
					"I44_HT_G_SdKfz2_Gray_WH"];

//Military Vehicle List - Random Spawns
militaryVehicles = ["I44_Truck_A_GMC_CCKW_Open2_Army",
					"I44_Truck_A_GMC_CCKW_Army",
					"I44_Car_G_Kfz1_Camo_WH",
					"I44_Truck_G_Kfz305_Camo_WH",
					"I44_Car_A_WillysMB_Army",
					"I44_Car_G_Kfz1_CamoOpen_WH",
					"I44_Car_B_WillysAB_VGO_Army",
					"I44_motorcycle_G_BMWR75_S",
					"I44_motorcycle_G_BMWR75",
					"I44_Car_B_WillysAB_Army"];

//Armed Military Vehicle List - Random Spawns
armedMilitaryVehicles = ["I44_Car_A_WillysMB_M1919_Army",
						 "I44_Car_G_Kfz1_Camo_WH"];

//Item Config
pickupList = ["Satelit",
				"EvMoney",
				"Suitcase",
				"Fuel_can"];

//Object List - Random Spawns.
objectList = ["Land_Barrel_water",
				"Land_prebehlavka",
				"Land_leseni2x",
                "Fort_Crate_wood",
                "Land_CamoNet_NATO",
				"Land_Barrel_water",
				"Land_stand_small_EP1",
                "Land_stand_small_EP1",
				"Base_WarfareBBarrier10xTall",
				"Base_WarfareBBarrier10x",
				"Base_WarfareBBarrier5x",
                "Base_WarfareBBarrier10xTall",
                "Base_WarfareBBarrier10x",
                "Base_WarfareBBarrier5x",
				"Land_Misc_deerstand",
				"Fort_Barricade",
				"Concrete_Wall_EP1",
                "Concrete_Wall_EP1",
                "Land_fort_bagfence_long",
                "Land_fort_bagfence_long",
                "Land_fort_bagfence_round",
                "Land_fort_bagfence_corner",
                "Land_BagFenceLong",
                "Land_BagFenceLong",
                "Land_fort_artillery_nest",
				"Land_fortified_nest_small_EP1",
				"Land_Misc_deerstand",
                "Land_fort_rampart",
                "Land_fort_rampart_EP1",
				"Land_HBarrier_large",
                "Land_HBarrier_large",
				"Land_Misc_Scaffolding",
				"Land_Fort_Watchtower_EP1",
                "Land_Fort_Watchtower",
				"Land_fortified_nest_big",
				"RampConcrete",
				"WarfareBDepot",
				"WarfareBCamp",
                "Hedgehog",
                "Land_ConcreteRamp",
                "Land_plot_green_vrata",
                "Fort_RazorWire",
                "Hhedgehog_concrete",
                "Barrack2",
                "Land_ladder_half",
                "Land_ladder",
                "Land_vez",
                "Land_CncBlock_Stripes",
                "Land_Campfire_burning",
                "Land_GuardShed",
                "Land_Ind_TankSmall",
                "I44_bunker_01",
                "Misc_cargo_cont_small2",
                "I44_bunker_AA",
                "I44_bunker_R27",
                "I44_bunker_R67_left",
                "I44_bunker_R67_right",
                "I44_object_barre",
                "I44_object_bc_beton",
                "I44_object_bloc_barre",
                "I44_obstacle_logramp3",
                "I44_tent_g_zeltbahn_16",
				"Hhedgehog_concreteBig",
				"I44_dessi_foxhole_1",
				"I44_trench_line_wire",
				"Land_ConcreteBlock"];
                                         
//Object List - Random Spawns.
staticWeaponsList = ["I44_GunMG_G_MG42_Tripod_WH",
                     "I44_GunMG_A_M1919A4_TripodM2_Army",
					 "I44_GunAT_A_M1_Army",
					 "I44_GunAT_B_QF6pdrMk4_Army",
					 "I44_GunMG_G_MG42_Bipod_WH",
					 "I44_GunAT_G_PaK40_WH",
					 "I44_GunMG_B_Vickers_Army",
					 "I44_GunMG_A_M2HB_TripodAA_Army"];

//Object List - Random Helis.
staticHeliList = ["I44_Plane_G_Bf109E4_WL",
				"I44_Plane_G_Ju87_WL",
                "I44_Plane_G_Ju52_3mg5e_WL",
                "I44_Plane_B_SpitfireMk1a_RAF",
                "I44_Plane_B_HHmkIIa_HVAR_RAF",
                "I44_Plane_A_P38_AAF"];

//Random Weapon List - Change this to what you want to spawn in cars.
vehicleWeapons = ["I44_FG42I",
				"I44_FG42I_bipod",
				"I44_FG42I_Zf4",
				"I44_FG42I_Zf4_bipod",
				"I44_FG42II",
				"I44_M1918A2",
				"I44_MP43",
				"I44_StG44",
				"I44_M1A1Bazooka",
				"I44_PIAT",
				"I44_PzFaust100",
				"I44_RPzB54",
				"I44_BrenMk1",
				"I44_M1919A4",
				"I44_MG34",
                "I44_MG42",
                "I44_M1911A1",
                "I44_P08",
                "I44_P38",
				"I44_WebleyMk6",
				"I44_G43",
				"I44_K43",
				"I44_G43Zf4",
				"I44_K98k",
				"I44_K98k_GGrGer",
				"I44_K98kZf42",
				"I44_LeeEnfield",
				"I44_LeeEnfieldNo4Mk1",
				"I44_LeeEnfieldNo4Mk1_T",
				"I44_DeLisleCarbine",
				"I44_M1Carbine",
				"I44_M1A1Carbine",
				"I44_M1Garand",
				"I44_M1Garand_M7",
				"I44_M1903",
				"I44_M1903A3_M1",
				"I44_M1903A4",
				"I44_M37Ithaca",
				"I44_M1A1Thompson",
				"I44_M3Greasegun",
				"I44_MP40",
				"I44_StenMk5",
				"I44_StenMk2S",
                "I44_StenMk2"];
                
MissionSpawnMarkers = [
            ["Mission_1",false],
            ["Mission_2",false],
            ["Mission_3",false],
            ["Mission_4",false],
            ["Mission_5",false],
            ["Mission_6",false],
            ["Mission_7",false],
            ["Mission_8",false],
            ["Mission_9",false],
            ["Mission_10",false],
            ["Mission_11",false],
            ["Mission_12",false],
            ["Mission_13",false],
            ["Mission_14",false],
            ["Mission_15",false],
            ["Mission_16",false],
            ["Mission_17",false],
            ["Mission_18",false],
            ["Mission_19",false],
            ["Mission_20",false],
            ["Mission_21",false],
            ["Mission_22",false],
            ["Mission_23",false],
            ["Mission_24",false],
            ["Mission_25",false],
            ["Mission_26",false],
            ["Mission_27",false],
            ["Mission_28",false],
            ["Mission_29",false],
            ["Mission_30",false],
            ["Mission_31",false],
            ["Mission_32",false],
            ["Mission_33",false],
            ["Mission_34",false],
            ["Mission_35",false],
            ["Mission_36",false],
            ["Mission_37",false],
            ["Mission_38",false],
            ["Mission_39",false],
            ["Mission_40",false],
            ["Mission_41",false],
            ["Mission_42",false],
            ["Mission_43",false],
            ["Mission_44",false],
            ["Mission_45",false],
            ["Mission_46",false],
            ["Mission_47",false],
            ["Mission_48",false],
            ["Mission_49",false],
            ["Mission_50",false]
];